<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .jin{
            width: 200px;
            height: 300px;
            border: 1px solid black;
            margin: 100px auto;
            perspective: 500px;
        }
        .box{
            width: 200px;
            height: 300px;
            background-color: red;
            transform:rotatex(45deg);
            transition: all 1s ease 0s;
            text-align: center;
            font-size: 16px;
            padding-top:140px ;
            box-sizing: border-box;
            
        }
        .box:hover{
            transform: rotateX(0deg);
        }
    </style>
</head>
<body>
    <div class="jin">
        <div class="box"id='box'></div>
    </div>
    <script>
        var yes=document.getElementById('box');
        var box=document.getElementsByClassName('box');
        // yes.innerHTML=sj;
        setInterval(function(){
            var x= new Date();
            var y=new Date(2023,5,7);
            var z=y-x;
            var day=parseInt(z/(1000*60*60*24));
            var hour=parseInt(z%(1000*60*60*24)/(1000*60*60));
            var min=parseInt(z%(1000*60*60*24)%(1000*60*60)/(1000*60));
            var miao=parseInt(z%(1000*60*60*24)%(1000*60*60)%(1000*60)/1000);
            var sj=`距离高考还有${day}天${hour}时${min}分${miao}秒`;
            box[0].innerHTML=sj;
        },1000);
        
     
    </script>
</body>
</html>